import tkinter as tk
root = tk.Tk()
lb = tk.Listbox(root)
for i in range(10):
    lb.insert(i, str(i*100))
lb.selection_set(3,8)
print(lb.curselection())
lb.pack()
root.mainloop()